package springcloud.subscrib;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.messaging.handler.annotation.Payload;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 直接配置到一个服务模块bus-skd
 * @date 2021/10/11 16:39
 */
@Slf4j
public class DefaultMessageListener {


    /**
     * @param
     * @return
     * @description: 监听该通道消息
     */
    @StreamListener(value = DefaultStream.DEFAULT_TN)
    public void handleAim(@Payload String message) {
        log.info("消息接收到" + message);
    }
}
